home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch20 / 20fig09.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  73 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Vaulted ceiling and columns
  8.         Inline {
  9.             url "vaulted.wrl"
  10.             bboxCenter 0.0 1.0 0.0
  11.             bboxSize   6.0 2.0 6.0
  12.         },
  13.     # Floor
  14.         Inline {
  15.             url "mesh.wrl"
  16.             bboxCenter 0.0 0.0 0.0
  17.             bboxSize   15.0 0.0 15.0
  18.         },
  19.     # Glowing sphere
  20.         Transform {
  21.             translation 0.0 1.0 0.0
  22.             children [
  23.                 PointLight {
  24.                     location  0.0 0.0 0.0
  25.                     radius    10.0
  26.                     intensity 1.0
  27.                     ambientIntensity 0.2
  28.                     color 0.7 0.5 0.0
  29.                 },
  30.                 Shape {
  31.                     appearance Appearance {
  32.                         # No material, use emissive texturing
  33.                         texture ImageTexture {
  34.                             url "fire.jpg"
  35.                         }
  36.                     }
  37.                     geometry Sphere { radius 0.2 }
  38.                 }
  39.             ]
  40.         },
  41.     # Pedestal pyramid
  42.         Shape {
  43.             appearance DEF White Appearance {
  44.                 material Material { }
  45.             }
  46.             geometry IndexedFaceSet {
  47.                 coord Coordinate {
  48.                     point [
  49.                     # Around the base
  50.                         -0.12 0.03  0.12,   0.12 0.03  0.12,
  51.                          0.12 0.03 -0.12,  -0.12 0.03 -0.12,
  52.                     # Tip
  53.                          0.0  0.63  0.0,
  54.                     ]
  55.                 }
  56.                 coordIndex [
  57.                     0, 1, 4, -1,  1, 2, 4, -1,
  58.                     2, 3, 4, -1,  3, 0, 4, -1,
  59.                 ]
  60.                 solid TRUE
  61.             }
  62.         },
  63.     # Pedestal base
  64.         Transform {
  65.             translation 0.0 0.015 0.0
  66.             children Shape {
  67.                 appearance USE White
  68.                 geometry Box { size 0.4 0.03 0.4 }
  69.             }
  70.         }
  71.     ]
  72. }
  73.